<template>
  <div>
    <input v-model="cloned.a">
    <input v-model="cloned.b">
    <button @click="sync">点我还原</button>
  </div>
</template>

<script setup>
import { useCloned } from '@vueuse/core'
const msg = { a: '你姐的技术', b: '就打发时间' }
const { cloned, sync } = useCloned(msg)
</script>
